package bap_server;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.net.ServerSocket;
import java.net.Socket;


public class BAP_server {
	static QuestionManager qm = null;
	public static void main(String[] args) {
		initQuestion();
		Thread add_ques = new AddQuestion(8888, qm);
		Thread get_ques = new GetQuestion(9999, qm);
		add_ques.start();
		get_ques.start();
		try {
			add_ques.join();
			get_ques.join();
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
	
	public static void initQuestion() {
		qm = new QuestionManager();
	}
}
